<template>
    <el-card>
        <h2>{{ student.name }}</h2>
        <p>年龄: {{ student.age }}</p>
        <p>专业: {{ student.major }}</p>
        <h3>成绩：</h3>
        <p>网站前端开发: {{ student.grades.frontend }}</p>
        <p>专业英语: {{ student.grades.english }}</p>
        <p>Python程序设计: {{ student.grades.python }}</p>
    </el-card>
</template>

<script setup>
    const props = defineProps({
        student: {
            type: Object,
            Required: true
        },
    });
</script>